package com.mingqijia.gassafety.webserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mingqijia.gassafety.db.entity.Consumer;
import com.mingqijia.gassafety.db.entity.ServicePkgRecord;
import com.mingqijia.gassafety.shared.utils.commonUtils.PageUtil;
import com.mingqijia.gassafety.webserver.request.FuncAreaIdRequest;
import com.mingqijia.gassafety.webserver.request.ServicePkgRecordListReq;
import com.mingqijia.gassafety.webserver.request.ServicePkgRecordReq;
import com.mingqijia.gassafety.webserver.response.ServicePkgRecordContentResp;
import com.mingqijia.gassafety.webserver.response.ServicePkgRecordListResp;

import java.util.List;

public interface ServicePkgRecordService extends IService<ServicePkgRecord> {

    //服务套餐-列表
    PageUtil<ServicePkgRecordListResp> businessAreaList(ServicePkgRecordListReq req);

    //服务套餐-新增
    Boolean add(ServicePkgRecordReq req);

    //服务套餐-编辑
    Boolean edit(ServicePkgRecordReq req);

    //服务套餐-详情
    ServicePkgRecordListResp detail(Integer id);

    //服务套餐-删除
    Boolean delete(FuncAreaIdRequest req);

    //服务套餐-服务内容
    List<ServicePkgRecordContentResp> serviceContent();


    /**
     * 客户服务套餐配置
     * @param consumer
     * @param imei
     * @param servicePkgModeSwitch
     * @return
     */
    List<String> servicePkgSendConfig(Consumer consumer,String imei,Boolean servicePkgModeSwitch);

    /**
     * 客户服务套餐配置
     * @param spId
     * @param consumerId
     * @param pkgId
     * @param imei
     * @return
     */
    Boolean checkOwnerServiceContentCode(String spId, Integer consumerId, Integer pkgId, String imei, String serviceContentCode);

    //服务套餐-校验是否存在客户
    Integer checkConsumer(Integer id);
}
